﻿using System.Configuration;

namespace OpenWaves.EPiServer.GeoProperties
{
    [DefaultImplementation(typeof (DefaultGeoPropertyConfiguration))]
    public interface IGeoPropertyConfiguration
    {
        string GoogleMapsApiKey { get; }
    }

    public class DefaultGeoPropertyConfiguration : IGeoPropertyConfiguration
    {
        public string GoogleMapsApiKey
        {
            get { return ConfigurationManager.AppSettings.Get("GoogleMapsApiKey"); }
        }
    }
}